import Vue from 'vue'
import Vuex from 'vuex'

import home from './modules/home'
import  user from './modules/user'
import search from './modules/search'
import detail from './modules/detail'
import shopcart from './modules/shopcart'
import trade from './modules/trade'

const state = {};
const actions = {};
const mutations = {};
const getters = {};

Vue.use(Vuex)

export default new Vuex.Store({
    state,
    actions,
    mutations,
    getters,
    modules:{
        home,
        user,
        search,
        detail,
        shopcart,
        trade
    }
})